home *** CD-ROM | disk | FTP | other *** search
- Path: news.PBI.net!usenet
- From: mich@pbinet.com
- Newsgroups: comp.lang.c
- Subject: Re: Parsing library for PC, C or C++, LEX for PC
- Date: 25 Feb 1996 16:26:25 GMT
- Organization: Pacific Bell Internet Services
- Message-ID: <4gq2jh$386@SNFC21_SRVR_WWW.PBI.net>
- References: <4ftdim$3fa@utopia.hacktic.nl> <4fugvh$m2f@hermes.louisville.edu>
- Reply-To: mich@pbinet.com
- NNTP-Posting-Host: ppp-5-8.rdcy01.pbinet.com
- X-Newsreader: IBM NewsReader/2 v1.03
-
- >" When you build a DLL using MS Visual C/C++, a number of
- >standard library functions are not permitted - including the printf
- >and scanf family. Thus, when developing Windows tools it is unwise
- >to rely on these functions - you might want to include the tools in
- >a DLL".
-
- I saw this and found it interesting. I've built a lot of windows applications and dll's
- in my day. What this quote says is true, but what it doesn't say is that a number
- of standard lib functions have mirror functions in windows, for instance, sprintf
- and wsprintf. Standard printf however, wouldn't make much sense unless your
- using quickwin or similar tools. What difference would putting printf in a dll
- make? If I need to format some output I either call the COut class (or whatever
- the output object is in mfc), or wsprintf it to a buffer and MessageBox it.
-
-